const landDom = document.querySelector('.ground');
landStyle = getComputedStyle(landDom);
const widthLand = parseFloat(landStyle.width);
const heightLand = parseFloat(landStyle.width);


class Land extends Rectangle{
    constructor(){
        super(widthLand, heightLand, 0, 488, -100, 0, landDom);
    }

    onMove(){
        if(this.x <= -widthLand / 2) {
            this.x = 0;
        }
    }
}